package com.bdqn.easybuy1.service.user;

import com.bdqn.easybuy1.entities.UserAddress;

import java.util.List;

public interface UserAddressService {
    /**
     * 根据登录用户的id查询用户地址
     *
     * @param id
     * @return
     * @throws Exception
     */
    public List<UserAddress> queryUserAddressList(Integer id) throws Exception;

    /**
     * 给用户添加地址
     *
     * @param id
     * @param address
     * @return
     */
    public Integer addUserAddress(Integer id, String address, String remark) throws Exception;

    /**
     * 根据id查询地址
     *
     * @param id
     * @return
     */
    public UserAddress getUserAddressById(Integer id);
}
